home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / crvlndst.6 < prev    next >
Text File  |  1996-07-16  |  1KB  |  34 lines

  1. .TH CRVLNDST
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. CRVLNDST
  5.  
  6.  
  7.  
  8.  NumericType CRVLNDST( CurveType Crv, PointType PtOnLine, VectorType LnDir,
  9.                                  NumericType IsMinDist, NumericType Epsilon )
  10.  
  11.  or
  12.  
  13.  ListType CRVLNDST( CurveType Crv, PointType PtOnLine, VectorType LnDir,
  14.                                 NumericType IsMinDist, NumericType Epsilon )
  15.  
  16. Computes the closest (if IsMinDist is TRUE, farthest if FALSE) point
  17. on Curve to the line specified by PtOnLine and LnDir as a
  18. point on the line and a line direction.
  19. Since this operation is partially numeric, Epsilon is used to set
  20. the needed accuracy. It returns the parameter value of the location on
  21. Crv closest to the line.
  22. If, however, Epsilon is negative, -Epsilon is used instead,
  23. and all local extrema in the distance function are returned as a list
  24. (both minima and maxima).
  25. If the line and the curve intersect, the point of intersection is
  26. returned as the minimum.
  27.  
  28. Example:
  29.  
  30.     Param = CRVLNDST( Crv, linePt, lineVec, TRUE, 0.001 );
  31.  
  32. finds the closest point on Crv to the line defined by linePt
  33. and lineVec.
  34.